package com.carrie.mdg.myviewtext.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.carrie.mdg.myviewtext.R;

import androidLib.activity.BaseActivity;

public class LoginTextMainActivity extends BaseActivity {
    private Button btnSend;

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, LoginTextMainActivity.class);
        context.startActivity(intent);
    }


    @Override
    protected void initVariables() {

    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        setContentView(R.layout.activity_login_text_main);
        btnSend = (Button) findViewById(R.id.button_send_force_logoff_broadcast);
    }

    @Override
    protected void initEvent() {
        btnSend.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent("com.carrie.broadcasttestbestpractice.FORCE_OFFLINE");
                sendBroadcast(intent);
            }
        });
    }

    @Override
    protected void loadData() {

    }
}
